/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.grouprecord.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.grouprecord.entity.GroupRecord;
import com.jeeplus.modules.grouprecord.mapper.GroupRecordMapper;

/**
 * 拼团记录Service
 * @author w
 * @version 2021-01-26
 */
@Service
@Transactional(readOnly = true)
public class GroupRecordService extends CrudService<GroupRecordMapper, GroupRecord> {

	public GroupRecord get(String id) {
		return super.get(id);
	}
	
	public List<GroupRecord> findList(GroupRecord groupRecord) {
		return super.findList(groupRecord);
	}
	
	public Page<GroupRecord> findPage(Page<GroupRecord> page, GroupRecord groupRecord) {
		return super.findPage(page, groupRecord);
	}
	
	@Transactional(readOnly = false)
	public void save(GroupRecord groupRecord) {
		super.save(groupRecord);
	}
	
	@Transactional(readOnly = false)
	public void delete(GroupRecord groupRecord) {
		super.delete(groupRecord);
	}

	public GroupRecord findNewGroup(String sessionsId) {
		return mapper.findLatestRecord(sessionsId);
	}
}